package com.cloud.api.domain.report;

import com.cloud.api.utils.ExcelUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author 杨斌
 * 2025-01-2025-01-15
 */
@Data
@ExcelUtils.ExcelSheet(watermark = @ExcelUtils.Watermark(type = 0)
)
@Schema(description = "导出车辆上线情况")
public class VehiclesOnLine implements Serializable {

    @Schema(description = "时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelUtils.ExcelExport(name = "table.field.dt")
    private LocalDate dt;


    @Schema(description = "当天有报文的车辆数")
    @ExcelUtils.ExcelExport(name = "table.field.haveMessageVehicle")
    private Integer haveMessageVehicle;

    @Schema(description = "当天有里程的车辆数")
    @ExcelUtils.ExcelExport(name = "table.field.haveMileageVehicle")
    private Integer haveMileageVehicle;

    @Schema(description = "当天运行里程km")
    @ExcelUtils.ExcelExport(name = "table.field.mileages")
    private Double mileages;
}
